
#include <EGL/egl.h>
#include <iostream>
#include <sstream>

#define PLATFORM_BREAK(message) { std::ostringstream ss; ss << __FILE__ << "(" << __LINE__ << "): " << message; std::cerr << ss.str() << std::endl; platform_break(ss.str()); }
#define PLATFORM_ASSERT(cond, message) if (!(cond)) PLATFORM_BREAK(message)

void platform_break(const std::string& message);
EGLNativeWindowType createWindow();
void platform_update();

class EventHandler
{
public:
	virtual void onQuit();
};